import request from '@/utils/request'

// 查询地表裂缝监测列表
export function listCrack(query) {
  return request({
    url: '/video/crack/list',
    method: 'get',
    params: query
  })
}

// 查询地表裂缝监测详细
export function getCrack(id) {
  return request({
    url: '/video/crack/' + id,
    method: 'get'
  })
}

// 新增地表裂缝监测
export function addCrack(data) {
  return request({
    url: '/video/crack',
    method: 'post',
    data: data
  })
}

// 修改地表裂缝监测
export function updateCrack(data) {
  return request({
    url: '/video/crack',
    method: 'put',
    data: data
  })
}

// 删除地表裂缝监测
export function delCrack(id) {
  return request({
    url: '/video/crack/' + id,
    method: 'delete'
  })
}
